<?php
include ("../model/connect.php");
include ("../model/Staff/class-trainningprogram.php");

$trnpid = $_POST['trnpid'];
$trnpname = $_POST['trnpname'];
$trnpdate = $_POST['trnpdate'];
$page = $_POST['page'];

$trnppro = new TrainningProgram();
    $trnppro->addTrainningProgram($trnpid,$trnpname,$trnpdate);
    mysql_close($conn);
    header("location:http:/educational/staff-index.php?p=staff-man-train-pro&page={$page}");
?>